# -*- coding: utf-8 -*-
# @Time       : 2019/7/27 下午4:33
# @Author     : Simon
# @Email      : 
# @File       : __init__.py.py
# @Software   : PyCharm
# @Description:
import os,traceback,base64,urllib,json,sys,random
from flask import Flask,request,jsonify,Response,render_template,redirect,make_response
# from flask_sqlalchemy import SQLAlchemy
import decimal
import flask.json
# from config import config
class MyJSONEncoder(flask.json.JSONEncoder):

    def default(self, obj):
        if isinstance(obj, decimal.Decimal):
            # Convert decimal instances to strings.
            return str(obj)
        return super(MyJSONEncoder, self).default(obj)
app=Flask(__name__)
# app.config['SQLALCHEMY_DATABASE_URI'] =config.DB_URI
# db=SQLAlchemy(app)

app.json_encoder = MyJSONEncoder
from .api import *

# from .article import *
